package ru.urfc.portal.model.documents;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import ru.urfc.portal.model.catalogs.SysCatalogItem;
import ru.urfc.portal.ui.client.Constants;

@Entity
@XmlRootElement(name = Constants.DOCUMENT_TYPE)
public class DocumentType extends SysCatalogItem {

	public String shortText;
	@Basic(fetch = FetchType.LAZY)
	@Lob
	private String initialData;
	
	public DocumentType() {
		super();
	}

	public DocumentType(String code, String text, String shortText, String initialData) {
		super(code, text);
		this.shortText = shortText;
		this.initialData = initialData;
	}

	@XmlTransient
	public String getInitialData() {
		return initialData;
	}

	public void setInitialData(String initialData) {
		this.initialData = initialData;
	}

}
